package com.ruoyi.common.core.utils.exptimpt.validator;

import com.ruoyi.common.core.domain.BaseExcel;
import com.ruoyi.common.core.utils.exptimpt.AbstractExImportStrategy;
import com.ruoyi.common.core.utils.exptimpt.ExImportHandlerChain;

import javax.validation.Valid;
import java.util.List;

/**
 * 基础校验（非空，长度，格式等）
 */
public class ValidatorChainBase extends ExImportHandlerChain {

    @Override
    public <T extends BaseExcel> boolean handle(@Valid List<T> dataList, AbstractExImportStrategy<T> importStrategy) {
        //TODO：校验
        return handleNext(dataList, importStrategy);
    }
}